# Author: Tylor Zhang, azhen, nemo
# Email: zhangyunqiao@gmail.com, azhenfeixue@gmail.com, nemo@gmail.com

from django.conf.urls.defaults import *

urlpatterns = patterns('',
    # Example:
    (r'^accounts/login/', 'meetup.account_views.login'),
    (r'^accounts/logout/', 'meetup.account_views.logout'),
    (r'^accounts/register/', 'meetup.account_views.register'),
    (r'^accounts/activate/(?P<uuid>[0-9a-zA-Z]+)/', 'meetup.account_views.activate'),
    (r'^accounts/thanks/', 'meetup.account_views.thanks'),
    (r'^accounts/profile/', 'meetup.account_views.profile'),
    (r'^groups/create/', 'meetup.group_views.create'),
    (r'^groups/thanks/', 'meetup.group_views.thanks'),
    (r'^groups/join/', 'meetup.group_views.join'),
    (r'^group/(?P<group_id>\d+)/$', 'meetup.group_views.details'),
    # Search a meet group.
    (r'^groups/search/', 'meet001.meetup.group_views.search'),
    (r'^group/(?P<group_id>\d+)/meetup/create/$', 'meetup.meetup_views.create'),
    (r'^group/(?P<group_id>\d+)/meetup/details/(?P<meetup_id>\d+)/$', 'meetup.meetup_views.details'),
    (r'^group/(?P<group_id>\d+)/meetup/participate/$', 'meetup.meetup_views.participate'),
#    (r'^group/meetup/detail/', 'meetup.meetup_views.details'),
)
